﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public interface IAssetLoader
{
    void Init();

    UInt32 LoadPrefab(string bundleName, string assetName, Action<uint, IAssetBundle> callback);

    UInt32 LoadAsset(string bundleName, Action<UInt32> callback);

    /// <summary>
    /// 卸载指定的资源
    /// </summary>
    /// <param name="path"></param>
    /// <param name="unloadImmediately"></param>
    void UnLoad(string bundleName, bool unloadImmediately = false);

    /// <summary>
    /// 加载资源
    /// </summary>
    void Load();


    void UnLoadPrefab(UInt32 resID);

    void UnLoadAsset(UInt32 resID);

    Sprite GetSpriteByResIDAndName(UInt32 resID, string spriteName);
}
